import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import pinia from './store/index'
import ElementPlus  from 'element-plus'
import 'element-plus/theme-chalk/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import '@/permission'


const app = createApp(App)

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}

createApp(App)
.use(pinia)
.use(ElementPlus)
.use(router)
.mount('#app')
